package org.blueoxygen.kukuruyuk.entity;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.blueoxygen.cimande.DefaultPersistence;

@Entity
@Table(name="kur_purchase_order_master")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class PurchaseOrder extends DefaultPersistence {
private String orderdate;
private Supplier supplier;
private Address billTo;
private Address sippTo;
private String dodate;
private int po_id;

public String getOrderdate() {
	return orderdate;
}
public void setOrderdate(String orderdate) {
	this.orderdate = orderdate;
}
@ManyToOne()
@JoinColumn(name="supplier_id")
public Supplier getSupplier() {
	return supplier;
}
public void setSupplier(Supplier supplier) {
	this.supplier = supplier;
}
public Address getBillTo() {
	return billTo;
}
public void setBillTo(Address billTo) {
	this.billTo = billTo;
}
public Address getSippTo() {
	return sippTo;
}
public void setSippTo(Address sippTo) {
	this.sippTo = sippTo;
}
public String getDodate() {
	return dodate;
}
public void setDodate(String dodate) {
	this.dodate = dodate;
}
public int getPo_id() {
	return po_id;
}
public void setPo_id(int po_id) {
	this.po_id = po_id;
}

}